package com.dubbo.lian.cms.modules.app.service.impl;
 import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dubbo.lian.cms.modules.app.service.ISysPlanService;
import com.dubbo.lian.common.util.BaseR;
import com.dubbo.lian.cms.modules.app.SysPlan;
import com.dubbo.lian.cms.modules.app.mapper.SysPlanMapper;
import com.dubbo.lian.common.util.ReturnTemplateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 import java.util.HashMap;
import java.util.List;
 /**
 * <p>
 * 计划目标类型列表  服务实现类
 * </p>
 *
 * @author lian
 * @since 2016-12-22
 */
@Service
public class SysPlanServiceImpl extends ServiceImpl<SysPlanMapper, SysPlan> implements ISysPlanService {
    @Autowired
    SysPlanMapper sysPlanMapper;
     @Override
    public BaseR selectListGroupBy() {
        HashMap hm = new HashMap();
        hm.put("groupBy","planTypeName");
        HashMap plan_type_list = new HashMap();
        List<SysPlan> sysPlanList =sysPlanMapper.selectListGroupBy(hm);
        plan_type_list.put("plan_type_list",sysPlanList);
        return ReturnTemplateUtil.returnOfMap(plan_type_list);
    }
 }